/**
 * Created by Administrator on 2017/1/29 0029.
 */
var Webpack =require('webpack')
var WebpackDevServer =require('webpack-dev-server')
var config =require ('./webpack.config.js')
config.entry.app.unshift('webpack-dev-server/client?http://localhost:8080','webpack/hot/dev-server')
var compiler=new Webpack(config)
var server=new WebpackDevServer(compiler,{
    hot:true,
    stats:{colors: true}
})
server.listen(8080)